1: | from(X) | → cons(X,n__from(s(X))) | |
2: | sel(0,cons(X,XS)) | → X | |
3: | sel(s(N),cons(X,XS)) | → sel(N,activate(XS)) | |
4: | minus(X,0) | → 0 | |
5: | minus(s(X),s(Y)) | → minus(X,Y) | |
6: | quot(0,s(Y)) | → 0 | |
7: | quot(s(X),s(Y)) | → s(quot(minus(X,Y),s(Y))) | |
8: | zWquot(XS,nil) | → nil | |
9: | zWquot(nil,XS) | → nil | |
10: | zWquot(cons(X,XS),cons(Y,YS)) | → cons(quot(X,Y),n__zWquot(activate(XS),activate(YS))) | |
11: | from(X) | → n__from(X) | |
12: | zWquot(X1,X2) | → n__zWquot(X1,X2) | |
13: | activate(n__from(X)) | → from(X) | |
14: | activate(n__zWquot(X1,X2)) | → zWquot(X1,X2) | |
15: | activate(X) | → X | |
16: | SEL(s(N),cons(X,XS)) | → SEL(N,activate(XS)) | |
17: | SEL(s(N),cons(X,XS)) | → ACTIVATE(XS) | |
18: | MINUS(s(X),s(Y)) | → MINUS(X,Y) | |
19: | QUOT(s(X),s(Y)) | → QUOT(minus(X,Y),s(Y)) | |
20: | QUOT(s(X),s(Y)) | → MINUS(X,Y) | |
21: | ZWQUOT(cons(X,XS),cons(Y,YS)) | → QUOT(X,Y) | |
22: | ZWQUOT(cons(X,XS),cons(Y,YS)) | → ACTIVATE(XS) | |
23: | ZWQUOT(cons(X,XS),cons(Y,YS)) | → ACTIVATE(YS) | |
24: | ACTIVATE(n__from(X)) | → FROM(X) | |
25: | ACTIVATE(n__zWquot(X1,X2)) | → ZWQUOT(X1,X2) | |